﻿/*
NF02030200	Prod. Volume	            Tons
NF02030300	Working days	            Day
NF02030400	Capacity - per month	    Tons
NF02030500	Productivity - Calendar day	Tons/day
NF02030600	Productivity - Working day	Tons/day
NF02030700	Loading rate	            %

*/
var readyJSON = [
            { "accountcode": "NF02050100", unit: "Day", "description": "Calendar day", digits: 0, style: "gray", defaultValue: function () { return fs.util.getLastDay() }, bold: true, datarow: true },
            { insertcontrol: true, description: "" },
            { "accountcode": "NF02050200", unit: " ", "description": "CAPACITY PER DAY", digits: 0, "subrow": [], bold: true, datarow: false, mutilFieldType: true, Process: [{
                Field: "YTD",
                Exp: {
                    mode: "search", fields: ["YTDM_1|NF0205020x", "YTDM_1|NF02050100", "CM|NF0205020x", "CM|NF02050100", "YTD|NF02050100"], mutilFieldType: true, equ: "(({0}*{1})+({2}*{3}))/{4}+"
                }
            }]
            },
            { "accountcode": "NF02050300", unit: " ", "description": "OUTPUT OF THE MONTH", "subrow": [], bold: true, datarow: false
                //            , Process: [{
                //                Field: "YTD",
                //                Exp: {//NF02030201/NF02030301
                //                    mode: "search", fields: ["NF0203020x", "NF0203030x"], equ: "/"
                //                }
                //            }]
            },
//            { "accountcode": "NF02050400", unit: "Tons", "description": "Capacity - per month", digits: 2, "subrow": [], allowCopyDataFromLastMonth: true, bold: true, datarow: false },
//            { "accountcode": "NF02050500", unit: "Tons/day", "description": "Productivity - Calendar day", digits: 2, "subrow": [], bold: true,
//                datarow: false, Process: [{
//                    Field: "CM",
//                    Exp: {//NF02030201/NF02030100
//                        mode: "search", fields: ["NF0205020x", "NF02050100"], equ: "/"
//                    }
//                }]
//            },
//            { "accountcode": "NF02050600", unit: "Tons/day", "description": "Productivity - Working day	", digits: 2, "subrow": [], bold: true,
//                datarow: false, Process: [{
//                    Field: "CM",
//                    Exp: {//NF02030201/NF02030301
//                        mode: "search", fields: ["NF0203020x", "NF0203030x"], equ: "/"
//                    }
//                }]
//            },
            {"accountcode": "NF02050400", unit: "%", "description": "Loading rate", "subrow": [], style: "blue", mutilFieldType:true, digits: 1, addition: "({0})*100", datarow: false, bold: true,
            Process: [{
                Field: "CM",
                Exp: {
                    mode: "search", fields: ["NF0205030x", "NF02050100", "NF0205020x"], equ: "/"
                }
            }, {
                Field: "YTD",
                Exp: {
                    mode: "search", fields: ["NF0205030x", "NF02050100", "NF0205020x"], equ: "/"
                }
            }]
        }
        ];
